package com.geekathon.mobzilla.model;

import java.util.Date;

import com.google.gson.annotations.SerializedName;

public class Comment {

	@SerializedName("attachment_id")
	private Integer attachmentId;

	@SerializedName("attachment_ref")
	private String attachmentRef;

	@SerializedName("creator")
	private User creator;

	@SerializedName("creation_time")
	private Date creationTime;

	@SerializedName("id")
	private Integer id;

	@SerializedName("is_private")
	private Boolean isPrivate;

	@SerializedName("text")
	private String text;

	public Integer getAttachmentId() {
		return attachmentId;
	}

	public void setAttachmentId(Integer attachmentId) {
		this.attachmentId = attachmentId;
	}

	public String getAttachmentRef() {
		return attachmentRef;
	}

	public void setAttachmentRef(String attachmentRef) {
		this.attachmentRef = attachmentRef;
	}

	public User getCreator() {
		return creator;
	}

	public void setCreator(User creator) {
		this.creator = creator;
	}

	public Date getCreationTime() {
		return creationTime;
	}

	public void setCreationTime(Date creationTime) {
		this.creationTime = creationTime;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Boolean getIsPrivate() {
		return isPrivate;
	}

	public void setIsPrivate(Boolean isPrivate) {
		this.isPrivate = isPrivate;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Time : ").append(creationTime + "\n");
		builder.append(creator.getName() + " said : ");
		builder.append(text);
		return builder.toString();
	}
}
